//
//  LPTwoTableFirstTableViewCell.m
//  ZhongWangYuanApp
//
//  Created by liuyingping on 2018/6/4.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "LPTwoTableFirstTableViewCell.h"

@implementation LPTwoTableFirstTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
          self.backgroundColor = [UIColor whiteColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self addSubview:self.titleLabel];
        [self addSubview:self.firstImageView];
        self.titleLabel.sd_layout
        .leftSpaceToView(self, 15 * [UIScreen zj_screenWScale])
        .heightIs(20 * [UIScreen zj_screenHScale])
        .topSpaceToView(self, 10 * [UIScreen zj_screenHScale])
        .widthIs([UIScreen zj_screenWith] * 0.55 - 57 * [UIScreen zj_screenWScale]);
        
        
        self.firstImageView.sd_layout
        .rightSpaceToView(self, 10 * [UIScreen zj_screenWScale])
        .heightIs(16 * [UIScreen zj_screenHScale])
        .topSpaceToView(self, 10 * [UIScreen zj_screenHScale])
        .widthIs(16 * [UIScreen zj_screenWScale]);
        
        
    }
    return self;
}

- (UILabel *)titleLabel{
    if (!_titleLabel) {
        _titleLabel = [UILabel new];
        _titleLabel.textColor = [UIColor grayColor];
        _titleLabel.font = LYPFONT(13);
        
    }
    return _titleLabel;
}

- (UIImageView *)firstImageView{
    if (!_firstImageView) {
        _firstImageView = [UIImageView new];
        _firstImageView.contentMode = UIViewContentModeCenter;
        _firstImageView.image = [UIImage imageNamed:@"icon_more_n"];
    }
    return _firstImageView;
}

@end
